{include file="header.tpl"}
<div id="main">
<form action="signin.php?next=signin{$redirect}" method="post">
<div>
<h1>Sign In</h1>
</div>
<div>{$errormessage}</div>
<table>
	<tbody>
		<tr>
			<td><span>username:</span></td>
			<td>
			<div><input type="text" name="username" value="{$username}" /></div>
			</td>
		</tr>
		<tr>
			<td><span>password:</span></td>
			<td>
			<div><input type="password" name="password" value="{$password}" /></div>
			</td>
		</tr>
		{if $smarty.session.logintimes > 2}
		<tr>
			<td><span>verification:</span></td>
			<td>
			<div><img name="captcha" id="captcha" src="{$captcha}" /><span><a href="JavaScript:updateauthword();">Refresh</a></span></div>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
			<div><input type="text" name="verification" value="" /></div>
			</td>
		</tr>
		{/if}
	</tbody>
</table>
{literal}
<script language="javascript" type="text/javascript">
//更新验证码
function updateauthword(){
	document.getElementById("captcha").src = "captcha.php?nocache="+new Date().getTime();
}
</script> 
{/literal}
<div>
	<input type="checkbox" name="rememberme" id="rememberme" />
	<label for="rememberme" id="remembermelabel">remember me</label>
</div>
<div>
	<input type="submit" name="signin" value="Go !" />
</div>
<div>
	<a class="link" href="lostpassword.php">forget your password?</a>
</div>
<div>
	<a class="link" href="signup.php">sign up here.</a>
</div>
</form>
</div>

{include file="footer.tpl"}
